package com.design01_builder.pattern02_factory.simple_factory.service;

import com.design01_builder.pattern02_factory.simple_factory.entry.AwardInfo;
import com.design01_builder.pattern02_factory.simple_factory.entry.ResponseResult;

/**
 * @ClassName DiscountFreeGoods
 * @Description 模拟打折卷服务
 * @Author zhangjunhao
 * @DATE 2023/9/2 1:05
 */
public class DiscountFreeGoods implements IFreeGoods {


    @Override
    public ResponseResult sendFreeGoods(AwardInfo awardInfo) {

        System.out.println("向用户发放一张打折券: " + awardInfo.getUid() + " , " + awardInfo.getAwardNumber());
        return new ResponseResult("200","打折券发放成功!");
    }
}
